<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of order
 *
 * @author n1kolyan
 */
class order extends CActiveRecord
{
    public static function model($className = __CLASS__) {
       return  parent::model($className);
    }

    public function tableName() {
        return 'order';
    }

    public function relations() {
        return array(
            'User'=>array(self::BELONGS_TO,'User','user_id'),

        );
        }
}
?>
